package com.aat.dxfy.aaa;

public class BJOffer {

	public static void main(String[] args) {
		int kouchu=3500;
		test(25280, 21650, 21650, kouchu);
		//test(23000, 7000, 19389, kouchu);
		//test(36667, 7000, 19389, kouchu);
	}

	public static void test(int x,int s,int g,int k){
		double base=x-s*0.102-g*0.12;
		double sheng = base-k;
		double res=0;
		if(sheng<=1500){
			res=sheng*0.03;
		}else if(sheng>1500&&sheng<=4500){
			res=sheng*0.1-105;
		}else if(sheng>4500&&sheng<=9000){
			res=sheng*0.2-555;
		}else if(sheng>9000&&sheng<=35000){
			res=sheng*0.25-1005;
		}else if(sheng>35000&&sheng<=55000){
			res=sheng*0.3-2755;
		}
		double shui=res;
		res=base-shui;
		double gjj=g*0.12*2;
		double res2=res+gjj;
		double nxd=res2*12/10000;
		String nx=(nxd+"").substring(0, (nxd+"").indexOf(".")+2);
		System.out.println("税前:"+x+",交税:"+shui+",月入:"+res+",公积金:"+gjj+",月总:"+res2+",年总:"+nx+"万\n");
	}
	
}
